package com.mdb.open.epay.rabbit.producer;

import com.mdb.open.epay.config.RabbitConfig;
import lombok.extern.log4j.Log4j2;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Log4j2
@Component
public class RetryQpRefundOrderProducer {

    @Autowired
    private RabbitTemplate rabbitTemplate;

    public void send(String qpRefundOrderNo) {
        this.rabbitTemplate.convertAndSend(RabbitConfig.EXCHANGE_EPAY, RabbitConfig.QUEUE_EPAY_QPREFUND_ORDER_RETRY, qpRefundOrderNo);
    }

}
